package com.qf.qfuser.conf;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//这里一定不要加 Configuration
//@Configuration
public class LoadBalanceConfig {

    @Bean
    public IRule iRule(){
        return new RandomRule();
    }
}
